<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		div{
			width: 1000px;
			height: 300px;
			margin: 50px auto;
		}
		.one{
			background: linear-gradient(red,green,blue);
/*			默认从上至下渲染*/
		}
		.two{
/*			background: linear-gradient(to right bottom,red,green,blue);*/
			background: linear-gradient(45deg,red,green,blue);
/*			设置渐变方向*/
		}
		.three{
			background: radial-gradient(red,green,blue);
		}
		.three:hover{
			background: radial-gradient(red 5%,green 45%,blue 50%);
		}
	</style>
</head>
<body>
	<div class="one"></div>
	<div class="two"></div>
	<div class="three"></div>
	<!-- 线性渐变 -->
	<!-- 径向渐变 -->

</body>
</html>